import axios from '@/api/fetch';
import SERVER from '@/api/server';

export const queryBusinessCustomer = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/businessCustomer`, { params });

export const addBusinessCustomer = params => axios.post(`${SERVER.DMSCLOUD_PART}/basedata/businessCustomer/add`, params);

export const updateBusinessCustomer = params => axios.put(`${SERVER.DMSCLOUD_PART}/basedata/businessCustomer/modifyByCustomerCode`, params);

export const dealersSelect = params => axios.get(`/dmscloud.part/basedata/businessCustomer/searchDealers`, { params });

export const customersSelect = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/businessCustomer/customersdict`, { params });
